package cn.iocoder.yudao.module.crossborder.product.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 商品分类信息 DTO
 *
 * @author LHL
 */
@Schema(description = "RPC 服务 - 商品分类信息 DTO")
@Data
public class CategoryDTO {

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long id;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "手机数码")
    private String name;

    @Schema(description = "分类编码", example = "MOBILE")
    private String code;

    @Schema(description = "父分类编号", example = "0")
    private Long parentId;

    @Schema(description = "分类层级", example = "1")
    private Integer level;

    @Schema(description = "分类路径", example = "0,1024")
    private String path;

    @Schema(description = "分类图标", example = "https://example.com/icon.png")
    private String icon;

    @Schema(description = "分类图片", example = "https://example.com/category.jpg")
    private String image;

    @Schema(description = "分类描述", example = "手机、平板、数码产品")
    private String description;

    @Schema(description = "分类状态", example = "1")
    private Integer status;

    @Schema(description = "排序", example = "1")
    private Integer sort;

    @Schema(description = "是否显示", example = "true")
    private Boolean visible;

    @Schema(description = "SEO标题", example = "手机数码 - 最新手机平板")
    private String seoTitle;

    @Schema(description = "SEO关键词", example = "手机,平板,数码")
    private String seoKeywords;

    @Schema(description = "SEO描述", example = "提供最新的手机、平板、数码产品")
    private String seoDescription;

    @Schema(description = "备注", example = "热门分类")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
